home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / BCCGRX12.ZIP / contrib / bcc2grx / src / bccgrx16.c < prev    next >
C/C++ Source or Header  |  1993-07-24  |  472b  |  22 lines

  1. /*
  2.  *  BCC2GRX  -  Interfacing Borland based graphics programs to LIBGRX
  3.  *  Copyright (C) 1993  Hartmut Schirmer
  4.  *
  5.  *  see bccgrx.c for details
  6.  */
  7.  
  8. #include "bccgrx00.h"
  9.  
  10. void line(int x1, int y1, int x2, int y2)
  11. {
  12.   _DO_INIT_CHECK;
  13.   moveto( x2, y2);
  14.   if (__gr_lstyle == SOLID_LINE && LNE.lno_width == 1)
  15.     GrLine( x1+VL, y1+VT, X+VL, Y+VT, COL|WR);
  16.   else {
  17.     LNE.lno_color= COL|WR;
  18.     GrCustomLine( x1+VL, y1+VT, X+VL, Y+VT, &LNE);
  19.   }
  20. }
  21.  
  22.